package com.yss.reportworld.api;

import com.yss.common.core.constant.SecurityConstants;
import com.yss.common.core.constant.ServiceNameConstants;
import com.yss.common.core.domain.YssResponse;
import com.yss.reportworld.api.factory.RemoteCustomerFallbackFactory;
import com.yss.reportworld.api.factory.RemoteDatabaseFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 定时任务检出报表世界基础数据信息
 */
@FeignClient(contextId = "remoteCustomerService", value = ServiceNameConstants.REPORTWORLD_SERVICE, fallbackFactory = RemoteCustomerFallbackFactory.class)
public interface RemoteCustomerService {

    @GetMapping("/customer/queryLicenseDueTime")
    public YssResponse<String> queryLicenseDueTime(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
